package com.aispeech.asr.comm.data.domain.meter;

public class Meter {
    private String serviceId;
    private String dimension;
    private String customerId;
    private double quantity;
    private long consumeTime;

    public static Meter of(String meterType, String dimensionType, String productId, double value) {
        Meter meter = new Meter();

        meter.serviceId = meterType;
        meter.dimension = dimensionType;
        meter.customerId = productId;
        meter.quantity = value;
        meter.consumeTime = System.currentTimeMillis() / 1000;

        return meter;
    }

    public String getServiceId() {
        return serviceId;
    }

    public String getDimension() {
        return dimension;
    }

    public String getCustomerId() {
        return customerId;
    }

    public double getQuantity() {
        return quantity;
    }

    public long getConsumeTime() {
        return consumeTime;
    }
}
